package com.group.eams.service;

import com.group.eams.entity.Student;
import org.springframework.context.annotation.Bean;

import java.util.List;

/**
 * Created by Doctor Who on 2016/11/2.
 */
public interface IStudentService {
    /**
     * 根据姓名获取学员信息
     * @param name 学员姓名
     * @return
     */
    public List<Student> getStudentList(String name);

    /**
     * 添加学员
     * @param student
     * @return
     */
    public boolean addStudent(Student student);

    /**
     * 删除学员
     * @param student
     * @return
     */
    public boolean delStudent(Student student);

    /**
     * 更新学员信息
     * @param student
     * @return
     */
    public boolean updateStudent(Student student);

    /**
     * 领取学员
     * @param student
     * @return
     */
    public boolean receiveStudent(Student student);

    /**
     * 返回所有学员列表
     * @return
     */
    public List<Student> getAllStudentList();

    public Student getStudent(Integer id);
}
